package com.samphanie.auiu.biz_home.model

import android.os.Parcelable
import com.samphanie.auiu.pub_mod.model.GoodsModel
import com.samphanie.auiu.pub_mod.model.SliderImage
import kotlinx.parcelize.Parcelize
import java.io.Serializable

/**
 * @author ZSY
 */
data class HomeModel(
    val bannerList: List<HomeBanner>?,
    val subCategoryList: List<SubCategory>?,
    val goodsList: List<GoodsModel>?,
) : Serializable

data class TabCategory(
    val id: String,
    val name: String,
    val goodsCount: Int
) : Serializable

data class HomeBanner(
    val id: String,
    val sticky: Int,
    val type: Int,
    val title: String,
    val subTitle: String,
    val url: String,
    val cover: String,
    val createTime: String
) : Serializable {
    companion object {
        const val TYPE_GOODS = 0
        const val TYPE_RECOMMEND = "recommend"
    }
}

data class SubCategory(
    val id: String,
    val groupName: String,
    val cateId: String,
    val subCategoryName: String,
    val subCategoryIcon: String,
    val showType: Int
) : Serializable